import React, { Component } from 'react'
import PropTypes from 'prop-types'
import Todo from './components/Todo'
 class App extends Component {
  constructor(){
    super()
    this.state={
      a:'nihao',
      context:"<h2 style='color:red'>我茶类</h2>"
    }
  }
  render() {
    console.log(this.state)
    return (
      <div>
        {this.props.title}
        {this.state.context}
        <div dangerouslySetInnerHTML={{__html:this.state.context}}></div>
        <Todo/>
      </div>
    )
  }
}
App.propTypes={
  ttitle:PropTypes.number
}
export default App